<template>
	<view>
		<u-swiper :list="list1" @change="change" @click="click"></u-swiper>
		<!-- 
		
		https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
		 
		 -->
		<!-- uview_demo -->
		<!-- 小程序开发 uniapp （1. 原生组件 2. uview） -->
		<u-button type="primary" text="确定"></u-button>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1: [
					'https://cdn.uviewui.com/uview/swiper/swiper1.png',
					'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					'https://cdn.uviewui.com/uview/swiper/swiper3.png',
				]
			};
		},
		methods:{
			change(index){
				//console.log('change',index );
			},
			click(index){
				//console.log('click',index );
			}
		}
	}
</script>

<style lang="less">

</style>
